home *** CD-ROM | disk | FTP | other *** search
- Path: gryphon.phoenix.net!usenet
- From: brucew@phoenix.net (Bruce Wedding)
- Newsgroups: comp.lang.c
- Subject: Re: *Pointer to Functions(); /* HELP */
- Date: Tue, 23 Jan 1996 06:27:31 GMT
- Organization: BranPaul Systems
- Message-ID: <4e1src$3on@gryphon.phoenix.net>
- References: <4dvrq8$c2c@news.unicomp.net>
- NNTP-Posting-Host: dial46.phoenix.net
- X-Newsreader: Moe's Newsreader
-
- jgore@conline.com (Jerry_Gore) wrote:
-
- >How do I pass a pointer to a funtion?
-
- > #define WORD unsigned int
- > void InstallTimer0(WORD period,void far (*func)(void));
-
- > void far animate(void) /* I added 'far' for no good reason. */
-
- InstallTimer0(120 , animate);
- or InstallTimer0(120, &animate);
- Bruce D. Wedding Have Compiler, Will Travel!
- Perspicacious Programming Performed Promptly
- Katy, Texas, USA, Planet Earth, Milkyway Galaxy, Known Universe
-
-